package cn.xzc.job.constant;

/**
 * @author 熊志聪
 * @Classname Constant
 * @Description 定时任务相关常数
 * @Date 2024/2/12 23:31
 */
public interface Constant {
    String EMPTY_JSON = "{}";
    char BACKSLASH = '\\';
    /**
     * A special cron expression value that indicates a disabled trigger: {@value}.
     * cron表达式中取值范围使用
     */
    String CRON_DISABLED = "-";
    String PERIOD = ".";
    String SLASH = "/";
    String EXCEPTION_INFO = "异常信息:\n{}";
    String EMPTY = "";
    String UTF_8 = "UTF-8";
    String CLASS_EXT = ".class";
    String JAR_FILE_EXT = ".jar";
    int MAX_ATTEMPTS = 366;
    char DOT = '.';
    /**
     * The CGLIB class separator:
     */
    String CGLIB_CLASS_SEPARATOR = "$$";
    char NESTED_CLASS_SEPARATOR = '$';

    String MANAGED_EXECUTOR_SERVICE_CLASS = "jakarta.enterprise.concurrent.ManagedExecutorService";

    String MANAGED_SCHEDULED_EXECUTOR_SERVICE_CLASS = "jakarta.enterprise.concurrent.ManagedScheduledExecutorService";

    /**
     * 要扫描包含定时任务注解TimerMethod的包范围
     */
    String JOB_METHOD_SCAN_PACKAGE = "cn.xzc";
}
